package chapter6;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description: 英尺  米
 * Date:2021/4/4
 * 运行结果
英尺		米		  米		英尺
==========================
0.0     	0.000          20.0	  65.580 
1.0     	0.305          25.0	  81.975 
2.0     	0.610          30.0	  98.370 
3.0     	0.915          35.0	 114.765 
4.0     	1.220          40.0	 131.160 
5.0     	1.525          45.0	 147.555 
6.0     	1.830          50.0	 163.950 
7.0     	2.135          55.0	 180.345 
8.0     	2.440          60.0	 196.740 
9.0     	2.745          65.0	 213.135 
 * ***************************************************************
 */
public class exc6_9 {
	
	public static double foot2Meter(double foot) {
		
		return foot*0.305;
		
	}
	
	public static double meter2Foot(double meter) {
		
		return meter*3.279;
		
	}
	
	public static void main(String[] args) {
	
		System.out.print("英尺\t\t米\t\t  米\t\t英尺\n");
		System.out.print("==========================\n");
		//一共打印10行
		for(int i=0;i<10;i++) {
			
			System.out.printf("%-8.1f\t%-8.3f   %8.1f\t%8.3f \n", 
					i*1.0,foot2Meter(i*1.0),20.0+5.0*i,meter2Foot(20.0+5.0*i));
			
		}
		
	}

}
